package com.editso.haier.dao;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.NoRepositoryBean;
import org.springframework.lang.Nullable;
import org.springframework.transaction.annotation.Transactional;

import java.util.Optional;

@NoRepositoryBean
public interface Dao<E,ID> extends CrudRepository<E, ID>, JpaSpecificationExecutor<E> {

    @Override
    @Transactional
    <S extends E> S save(S s);
}
